﻿@model List<PessMvc.Models.ExpertJudgeModel>

@{
    var grid = new WebGrid(Model);
}

<style type="text/css">
    .col1 {width:70px !important;}
    .col2 {width:120px !important;}
    .col3 {width:60px;text-align:center !important;}
    .col4 {width:150px;text-align:right !important;}
    .col5 {width:150px;text-align:right !important;}
    .col6 {width:200px !important;}
    .col7 {width:60px !important;}
    .col8 {width:80px;}
    .col9 {width:80px;}
</style>
@grid.GetHtml(columns: grid.Columns(
grid.Column("SerialNumber", header: "评委编号", style:"col1"),
grid.Column("RealName", header: "真实姓名", style:"col2"),
grid.Column("Gender", header: "性别", style:"col3", format: @<text>@Utility.TranslateGender(item.Gender)</text>),
grid.Column("Birthdate", header: "出生年月", style:"col4"),
grid.Column("Phone", header: "电话", style:"col5"),
grid.Column("ExpertGroupCallsign", header: "评委组", style:"col6"),
grid.Column("ExpertGroupID", header: "ID", style:"col7"),
grid.Column(format: (item) => Html.ActionLink("编辑", "Edit", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl }, null)),
grid.Column(format: (item) => Html.ActionLink("删除", "Delete", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl }, null))
))